home *** CD-ROM | disk | FTP | other *** search
- /* P E E K B . C
-
-
- ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
- ≥ fi€€€› €€€€ fl€€€€€€ €€€€€ ≥
- ≥ €€€€€fi€€€€› fl€€€€ €€€€€ ≥
- ≥ €fi€€€€›€€€€€ fl€€ €€€€€ ≥
- ≥ fi€›€€€€€fi€€€€› ‹€ fl €€€€€ ≥
- ≥ €€€fi€€€€›€€€€€ €€€ €€€€€ ≥
- ≥ fi€€€›€€€€€fi€€€€› fl€ ‹ €€€€€ ≥
- ≥ €€€€€fi€€€€›€€€€€ ‹€€ €€€€€ ≥
- ≥ fi€€€€€›€€€€€fi€€€€› ‹€€€€ €€€€€ ≥
- ≥ €€€€€€€fi€€€€›€€€€€ ‹€€€€€€ €€€€€ ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥ MicroEndeavors, Inc. ≥
- ≥ 3150 Township Line Road ≥
- ≥ Drexel Hill, PA 19026 ≥
- ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
-
- demonstration 'C' library - adds the following:
- peekb - peek a byte from an address
- */
-
-
- #include <dos.h>
- #include <pro_ext.h>
-
-
- /******************************************************************
- FUNCTION PEEKB
-
- called from FoxPro as:
- peekb(segment,offset)
- returns:
- byte found at that address
- (line 0 of video is at -18432:0000)
- (line 1 of video is at -18432:0160)
- *******************************************************************/
- void far peekb (ParamBlk FAR *parm)
- {
- char __far *memory;
- unsigned int newseg,newoff;
- newseg = parm->p[0].val.ev_long;
- newoff = parm->p[1].val.ev_long;
- memory = MK_FP(newseg,newoff);
- _RetInt(memory[0],10);
- }
-
-
- FoxInfo myFoxInfo[] = {
- {"PEEKB", peekb, 2, "I,I"},
- };
-
- FoxTable _FoxTable = {
- (FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo
- };
-
-
-